/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package banco;

/**
 *
 * @author danilo
 */
public class Acount {
    
    private double balance;


    
    public double getSaldo(){
        
        return balance;

    }

    public void  credita(double amount){

          balance = balance +  amount;
    }

    public Acount(double initialBalance){

        if (initialBalance > 0.0){

            balance = initialBalance;
        }
    }
}
